<?$this->load->view('admin/header');?>

<script type="text/javascript">
    onload = function()
    {
        document.user_form.password.value='';
        document.user_form.passwordv.value='';
    }
</script>

<!-- Content Area -->
<div id="middlepart">
    <!-- Left column -->
    <div id="leftcolumn">
        <h1>User Management</h1>

        <?=form_open($this->uri->uri_string(), array('name'=>'user_form'));?>

        <?$this->load->view('admin/system_messages');?>

        <div id="container-1">
            <ul>
                <li><a href="#fragment-7"><span>User</span></a></li>
                <li><a href="#" onclick="document.user_form.submit();"><span>Save This User</span></a></li>
            </ul>
            <div id="fragment-7">

                <label>User Type: </label>
                <select name="user_type_id" >
                    <?foreach ($this->mdl_user_types->get() as $key=>$value) {?>
                    <option value="<?=$key;?>" <?if ($this->validation->user_type_id == $key) {?>selected<?}?>><?=$value['type'];?></option>
                    <?}?>
                </select>

                <br />

                <label>Email Address: </label>
                <input type="text" class="medium" name="email_address" value="<?=$this->validation->email_address;?>" />

                <br />

                <label>Display Name: </label>
                <input type="text" class="medium" name="display_name" value="<?=$this->validation->display_name;?>" />

                <br />

                <label>Password (Only to change): </label>
                <input type="password" class="medium" name="password" value="" />

                <br />

                <label>Password (Verification): </label>
                <input type="password" class="medium" name="passwordv" value="" />

                <br />

                <label>Website URL: </label>
                <input type="text" class="medium" name="website_url" value="<?=$this->validation->website_url;?>" />

                <br />

                <label>Content Editor: </label>
                <select name="meta_content_editor" >
                    <option value="0" <?if ($this->validation->meta_content_editor == 0) {?>selected<?}?>>None</option>
                    <option value="1" <?if ($this->validation->meta_content_editor == 1) {?>selected<?}?>>markItUp</option>
                    <option value="2" <?if ($this->validation->meta_content_editor == 2) {?>selected<?}?>>Xinha</option>
                </select>

                <label ></label>
                <a class="submit" href="#" onclick="document.user_form.submit();">submit</a> <a class="reset" href="#">cancel</a>

            </div>

        </div>

        </form>

        <br />
    </div>
    <!-- Left Column -->
    <!-- Right Column -->
    <div class="rightbox">
        <h3>Notes column </h3>
        <!-- Notes / Articles Box -->
        <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Duis dignissim vulputate leo. Donec mauris. Suspendisse potenti. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Aliquam molestie, erat non ultricies elementum, ante nulla hendrerit erat, sed laoreet augue pede eget leo. Nunc iaculis, urna quis eleifend euismod, metus metus dapibus diam, sed ultrices quam dui vitae ligula. Donec eget enim sit amet risus imperdiet feugiat. Sed volutpat, ante at pharetra euismod, est mauris elementum ante, rutrum dictum diam metus sit amet sapien. Sed tristique faucibus felis. Mauris ultrices laoreet tortor. Nulla vehicula, diam ornare ullamcorper convallis, est turpis feugiat eros, et venenatis arcu ipsum at erat. Mauris volutpat tincidunt nulla. Praesent ante lacus, volutpat eu, convallis vel, vulputate ut, nibh. </p>
    </div>
    <!-- Notes / Articles Box -->
</div>
<!-- Content -->

<?$this->load->view('admin/footer');?>